#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main() {
    char line[] = "1 4 \"2025-09-12 11:00\" \"2025-09-12 12:00\"\n";
    int seat_id, user_id;
    char start_time[20], end_time[20];
    
    // 使用正确的转义字符
    int result = sscanf(line, "%d %d \"%19[^"]\" \"%19[^"]\"", &seat_id, &user_id, start_time, end_time);
    
    if (result == 4) {
        printf("解析成功: 座位ID=%d, 用户ID=%d, 开始时间=%s, 结束时间=%s\n", seat_id, user_id, start_time, end_time);
    } else {
        printf("解析失败，匹配字段数: %d\n", result);
    }
    
    return 0;
}